package items;

import java.util.*;

public class TagElement
{
	private ArrayList<String> lElements;
	private int length;
	private String tag;
	private String clas;
	
	public TagElement( String tag , String clas )
	{
		lElements = new ArrayList<String>();
		length = lElements.size();
		this.tag = tag;
		this.clas = clas;
	}
	
	public String getTag()
	{
		return tag;
	}
	
	public String getClas()
	{
		return clas;
	}
	
	public void add( String str )
	{
		lElements.add(str);
		length++;
	}
	
	public String get(int i)
	{
		return lElements.get(i);
	}
	
	public void remove(int i)
	{
		lElements.remove(i);
		length--;
	}
	
	public int size()
	{
		return length;
	}	
}
